package cn.stylefeng.guns.modular.standard.bean;

import cn.binarywang.wx.miniapp.bean.code.WxMaCodeAuditStatus;
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;

@Data
public class UploadFileResult implements Serializable {

    private String errcode;
    private String errmsg;
    private String url;
    private String token;
    private String authorization;
    @SerializedName("file_id")
    private String fileId;
    @SerializedName("cos_file_id")
    private String cosFileId;

    public static UploadFileResult fromJson(String json) {
        return (UploadFileResult) WxMaGsonBuilder.create().fromJson(json, UploadFileResult.class);
    }
}
